package com.clever.springssm.utils;

import lombok.Getter;

/**
 * @author ChenWang
 * @enumName ErrorStatus
 * @date 2020/10/30 15:44
 * @since JDK 1.8
 */
@Getter
public enum InfoStatus {
    //枚举类型的实例
    SUCCESS(2000,"成功"),
    SYS_ERROR(40001,"系统异常"),
    SERVICE_ERROR(404,"服务异常")
    ;
    //参数类型
    private int status;
    private String message;
    InfoStatus(int status, String message) {
        this.status = status;
        this.message = message;
    }
}

